home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2644 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PPC compilers
  5. Date: 2 Feb 1996 14:24:59 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4et6rr$o2l@maureen.teleport.com>
  8. References: <38232191@kone.fipnet.fi> <551.6602T1231T2646@ifi.uio.no> <38232238@kone.fipnet.fi>
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
  13.  
  14. : > Sorry, I have not followed this discusion closely.
  15. : > 
  16. : > What problems will it cause to have 2 addx? Is there anything wrong with
  17. : > just exchanging the fraction parts like we are doing today?
  18.  
  19. : For a normal loop with one addx you set the x-flag correctly like
  20. : this:
  21.  
  22. :         moveq   #0,d0
  23. :         add.l   d1,d0
  24. :         ...
  25. : .loop   addx.l  d1,d2
  26. :         dbf     d7,.loop
  27.  
  28. : But, what we do if we have two addx (16.16 for V too) and still
  29. : want 100% accuracy.
  30.  
  31.  and again.. what is do for d0 for?
  32.  just sub.l    d0,d0 it will do the same as the moveq/add.
  33.  But you might want to do it correctly VS just clearing X.
  34.  
  35.  move.l    d2,d0
  36.  sub.w    d1,d0
  37.  add.l    d1,d0
  38.  
  39.  should be the right setup, with a loop count -1 and
  40.  an addx.w    d1,d0    for the last iteration.
  41.  
  42. : You just cleared the x-flag before the loop, is that really
  43. : correct?
  44.  
  45.  Before the loop you need to set the x flag by adding the fractional
  46.  part for X int or Y int or Z etc.... and at the end of the loop
  47.  (count -1) you just add the int part.
  48.  
  49.  Check some back post , its more detailed there.
  50.  
  51.  You can actually use 3 addx if you wanted... it require the same setup.
  52.  
  53.  Stephan
  54.